package wqh.dao;

import wqh.domain.DtSensor;

import java.util.List;

/**
 * Created by devts on 2016/11/30.
 */
public interface DtSensorDao {

    List<DtSensor> findAll();
    DtSensor findById(Integer id);
    List<DtSensor> findByDeviceId(Integer id);
    DtSensor findByDeviceIdAndCode(Integer id,String code);

    int insert(DtSensor dtSensor);

    int updateById(DtSensor dtSensor);

    int deleteById(Integer id);

    int deleteByDeviceId(Integer id);

}
